package com.jdcjk.project.setting.model;

import android.content.Context;

import com.jdcjk.base.model.BaseModel;
import com.zhy.http.okhttp.OkHttpUtils;
import com.zhy.http.okhttp.callback.StringCallback;

/**
 * Created by Administrator on 2016/12/16 0016.
 */

public class SettingModel extends BaseModel {
    public SettingModel(Context context) {
        super(context);
    }

    /**
     * 注册
     *
     * @param url            更新信息URL
     * @param account        账号（手机号）
     * @param username       名称
     * @param email          邮箱
     * @param address        地址
     * @param stringCallback 回调
     */
    public void updateUserInfo(String url, String account, String username, String email, String address, StringCallback stringCallback) {
        OkHttpUtils.post()
                .url(url)
                .addParams("account", account)
                .addParams("username", username)
                .addParams("email", email)
                .addParams("address", address)
                .build()
                .execute(stringCallback);
    }
}
